package com.xiatl.cgi.server;

import com.xiatl.cgi.server.cgi.utils.ResultUtil;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * 服务端测试控制器
 */
@RestController
@RequestMapping("/server")
public class ServerTestController {

    @RequestMapping("/test")
    public Object test(@RequestBody Map<String, Object> params) {
        params.put("res", "OK");
        return ResultUtil.resSuccess(params);
    }
}
